<?php
namespace app\admin\model;
use think\Db;
class Staff extends Base{


    public function delStaff($id){
        $row = Db::table('staff')->where("staff_id = $id")->update(['staff_del' => 1]);
        if ($row > 0) {
            return "操作成功";
        } else { 
            return "你的操作太骚，系统不予识别";
        }

    }


    public function delsStaff($id){
        $row = Db::table('staff')->where("staff_id = $id")->update(['staff_del' => 0]);
        if ($row > 0) {
            return "操作成功";
        } else {
            return "你的操作太骚，系统不予识别";
        }

    }


}